#!/bin/bash
ALG=$1
mkdir -p indexes/${ALG}

function main() {
    for data in glove-100-angular sift-128-euclidean deep-image-96-angular fashion-mnist-784-euclidean gist-960-euclidean; do
    #for data in fashion-mnist-784-euclidean; do
        #time numactl -N 0 -m 0 -- ./${ALG}_test ${ALG} ${data} &
        #time numactl -N 1 -m 1 -- ./${ALG}_test ${ALG} ${data} &
        #time numactl -N 2 -m 2 -- ./${ALG}_test ${ALG} ${data} &
        #time numactl -N 3 -m 3 -- ./${ALG}_test ${ALG} ${data} &
        time numactl -C 0-31 -m 0 -- ./${ALG}_test ${ALG} ${data} &
        wait
    done
}

main
